package User;

import book.BookList;
import operation.IOperation;

public abstract class User {
    public String name;//用户姓名
    public IOperation[] iOperations;//创建一个接口类型的数组
    public User(String name) {
        this.name = name;
    }
    public abstract int menu();//每个用户对应的菜单
    public void doOperation(int choice,BookList bookList) {//每个用户现在对应的功能
        this.iOperations[choice].work(bookList);
    }
}
